import request from "../request";


//获取员工列表
const getWalletList = async (page: number, userId: string, state: string) => {
    return await request.get('/api/withdrawal/getUserWantPage?page=' + page + '&userId=' + userId + '&state=' + state, { showLoading: false })
}

//拒绝提现
const refuseMoney = async (params:any) => {
    return await request.post('/api/withdrawal/prohibitUserWant',JSON.stringify(params),{showLoading:false})
}

//同意提现
const seccussMoney = async (params:any) => {
    return await request.post('/api/withdrawal/agreeUserWantInfo',JSON.stringify(params),{showLoading:true})
}

export {
    getWalletList,
    refuseMoney,
    seccussMoney
}